class jiesuanribean {
  String companyName;
  double lastAccumulation;
  double basicValue;
  String serialNumber;
  double lastBalance;
  double caloriesSold;
  double salesAmount;
  List<SettlementDayReportDtoList> settlementDayReportDtoList;

  jiesuanribean(
      {this.companyName,
        this.lastAccumulation,
        this.basicValue,
        this.serialNumber,
        this.lastBalance,
        this.caloriesSold,
        this.salesAmount,
        this.settlementDayReportDtoList});

  jiesuanribean.fromJson(Map<String, dynamic> json) {
    companyName = json['companyName'];
    lastAccumulation = json['lastAccumulation'];
    basicValue = json['basicValue'];
    serialNumber = json['serialNumber'];
    lastBalance = json['lastBalance'];
    caloriesSold = json['caloriesSold'];
    salesAmount = json['salesAmount'];
    if (json['settlementDayReportDtoList'] != null) {
      settlementDayReportDtoList = new List<SettlementDayReportDtoList>();
      json['settlementDayReportDtoList'].forEach((v) {
        settlementDayReportDtoList
            .add(new SettlementDayReportDtoList.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['companyName'] = this.companyName;
    data['lastAccumulation'] = this.lastAccumulation;
    data['basicValue'] = this.basicValue;
    data['serialNumber'] = this.serialNumber;
    data['lastBalance'] = this.lastBalance;
    data['caloriesSold'] = this.caloriesSold;
    data['salesAmount'] = this.salesAmount;
    if (this.settlementDayReportDtoList != null) {
      data['settlementDayReportDtoList'] =
          this.settlementDayReportDtoList.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class SettlementDayReportDtoList {
  String dayOfDate;
  String accumulation;
  double dailyAmount;
  double correctionAmount;
  double settlementAmount;
  String remark;
  String price;
  double settlementValue;
  int rechargeTimes;
  double rechargeAmount;
  double balance;
  double remain;

  SettlementDayReportDtoList(
      {this.dayOfDate,
        this.accumulation,
        this.dailyAmount,
        this.correctionAmount,
        this.settlementAmount,
        this.remark,
        this.price,
        this.settlementValue,
        this.rechargeTimes,
        this.rechargeAmount,
        this.balance,
        this.remain});

  SettlementDayReportDtoList.fromJson(Map<String, dynamic> json) {
    dayOfDate = json['dayOfDate'];
    accumulation = json['accumulation'];
    dailyAmount = json['dailyAmount'];
    correctionAmount = json['correctionAmount'];
    settlementAmount = json['settlementAmount'];
    remark = json['remark'];
    price = json['price'];
    settlementValue = json['settlementValue'];
    rechargeTimes = json['rechargeTimes'];
    rechargeAmount = json['rechargeAmount'];
    balance = json['balance'];
    remain = json['remain'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['dayOfDate'] = this.dayOfDate;
    data['accumulation'] = this.accumulation;
    data['dailyAmount'] = this.dailyAmount;
    data['correctionAmount'] = this.correctionAmount;
    data['settlementAmount'] = this.settlementAmount;
    data['remark'] = this.remark;
    data['price'] = this.price;
    data['settlementValue'] = this.settlementValue;
    data['rechargeTimes'] = this.rechargeTimes;
    data['rechargeAmount'] = this.rechargeAmount;
    data['balance'] = this.balance;
    data['remain'] = this.remain;
    return data;
  }
}
